import { createApp } from 'vue';
import App from './App.vue';
import ArcoVue from '@arco-design/web-vue';
// 额外引入图标库
import ArcoVueIcon from '@arco-design/web-vue/es/icon';

import './assets/css/reset.css';

import router from './router';

// 导入message样式
import '@arco-design/web-vue/es/message/style/css.js';

// 图片懒加载插件
import lazyPlugin from 'vue3-lazy';


const app = createApp(App);


app.use(router);
app.use(ArcoVue);
app.use(ArcoVueIcon);

// 图片懒加载插件
app.use(lazyPlugin, {
    loading: './assets/img/load1.png', // 加载时默认图片
    error: './assets/img/load2.png',   // 图片失败时默认图片
});


app.mount('#app');

